package demo6;

import java.util.Scanner;

public class Number {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s1 = sc.nextInt();
        int s2 = sc.nextInt();
        System.out.println(s1 + s2);
        System.out.println(s1 - s2);

    }
}
